Making an output in the most straightforward way leads to outputting on cycle 3,
which means the next input spawns while Berlo is in the wrong position, getting
the machine permanently stuck. To avoid this, we have to delay output until cycle 6,
which requires "remembering" elements from many half-cycles ago.

In this solution, the board looks like this at the end of each half-cycle:

      X-0-4-5
     / / / / 
    1-4-5-E
   / / / / 
  4-5-E-1
 / / / / 
5-E-2-3

* E is salt or earth (but once it becomes earth, it stays earth).
* X is a copy of the bottom-left Berlo atom.
* 0 is a copy of the bottom-right Berlo atom, except that if that atom is salt, it uses the previous element instead.
* 1, 2, 3, 4, and 5 are what 0 was that many half-cycles ago.

On cycle 5’s post-movement half-cycle (and not before!), those line up to match the output:
0, 1, and 2 are water, 3 and 4 are air, 5 is fire, and X is earth.

At the start of a half-cycle, everything naturally gets 1 older:

      ?-1-5-6
     / / / / 
    2-5-6-E
   / / / / 
  5-6-E-2
 / / / / 
6-E-3-4

To restore the desired board state, we need to spend the half-cycle playing connect-the-dots, moving each number to where the next one is.

* Initialize the stable earths (everything else is ordering-sensitive, but this can be done at any point of the half-cycle):
dupe 0,1 => 1,0
dupe 1,2 => 2,1
dupe 2,3 => 3,2

* Copy 4 to one of its target positions:
calc 3,1
dupe 3,0 => 3,1
calc 2,2
dupe 3,1 => 2,2
calc 1,2
dupe 2,2 => 1,2

      ?-1-5-6
     / / / / 
    2-4-4-E
   / / / / 
  5-6-E-4
 / / / / 
6-E-3-4

* Copy 3 to its target position:
calc 3,0
dupe 2,0 => 3,0

      ?-1-5-6
     / / / / 
    2-4-4-E
   / / / / 
  5-6-E-4
 / / / / 
6-E-3-3

* Copy 2 to its target position:
calc 1,1
dupe 0,2 => 1,1
calc 2,0
dupe 1,1 => 2,0

      ?-1-5-6
     / / / / 
    2-4-4-E
   / / / / 
  5-2-E-4
 / / / / 
6-E-2-3

* Copy 1 to one of its target positions, start advancing it towards the other one:
calc 2,2
dupe 1,3 => 2,2
calc 3,1
dupe 2,2 => 3,1
calc 0,3
dupe 1,3 => 0,3

      1-1-5-6
     / / / / 
    2-4-1-E
   / / / / 
  5-2-E-1
 / / / / 
6-E-2-3

* Copy 5 to its target positions:
calc 0,0
dupe 0,1 => 0,0
calc 1,1
dupe 0,1 => 1,1
calc 2,2
dupe 2,3 => 2,2
calc 3,3
dupe 2,3 => 3,3

      1-1-5-5
     / / / / 
    2-4-5-E
   / / / / 
  5-5-E-1
 / / / / 
5-E-2-3

* Copy 4 to the rest of its target positions:
calc 0,2
dupe 1,2 => 0,2
calc 0,1
dupe 0,2 => 0,1
calc 1,3
dupe 1,2 => 1,3
calc 2,3
dupe 1,3 => 2,3

      1-4-4-5
     / / / / 
    4-4-5-E
   / / / / 
  4-5-E-1
 / / / / 
5-E-2-3

* Copy the bottom-right Berlo atom (or 1 if it’s salt) to its target position:
calc 1,3
dupe 1,4 => 1,3
dupe 0,3 => 1,3

      1-0-4-5
     / / / / 
    4-4-5-E
   / / / / 
  4-5-E-1
 / / / / 
5-E-2-3

* Copy 1 to its target position:
calc 0,2
dupe 0,3 => 0,2

      1-0-4-5
     / / / / 
    1-4-5-E
   / / / / 
  4-5-E-1
 / / / / 
5-E-2-3

* Finally, copy the bottom-left Berlo atom to its target position:
calc 0,3
dupe 0,4 => 0,3

      X-0-4-5
     / / / / 
    1-4-5-E
   / / / / 
  4-5-E-1
 / / / / 
5-E-2-3

And we’re back where we started from, just as planned.
